<template>
  <Header />
  <router-view />
  <Footer v-show="['/home', '/search'].includes(route.path)" />
</template>

<script lang="js">
import { defineComponent, onMounted } from "vue";
import { useInstance } from "@/utils";
import { CATEGORYLIST } from '@/store/types';
export default defineComponent({
  name: "Search",
  setup(props, { emit, slots }) {
    const { $router, $store } = useInstance();
    onMounted($store.dispatch(CATEGORYLIST));
    return {
      route: $router.currentRoute
    };
  },
});
</script>

<style lang="scss"></style>
